﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("输入是什么动物：");
            string Animal=Console.ReadLine();
               

           


            if (Animal.Equals("狗")){

                Dog b=new Dog();

                Console.WriteLine("输入狗的名字：");
               b.Animalname=Console.ReadLine();


                Console.WriteLine("输入狗的颜色：");
                b.Animalcolor=Console.ReadLine();


                b.bite();
            
               
            
            }
            if(Animal.Equals("鱼")){



              Fish C=new Fish();
                Console.WriteLine("请输入鱼的名字：");

                C.Animalname=Console.ReadLine();

                Console.WriteLine("请输入鱼的颜色：");
                C.Animalcolor=Console.ReadLine();


                C.bubbles();
            }
        }
    }
}
